<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        div.div1 ul.box li,
        div.div1 p {
            font-size: 40px;
            color: hotpink;
        }
        
        div.box p.p1,
        div.box div.div1 p,
        p {
            color: indigo;
        }
    </style>
</head>

<body>
    <div class="div1">
        <ul class="box">
            <li>语文</li>
        </ul>
    </div>
    <div class="div1">
        <p>数学</p>
    </div>
    <div class="box">
        <p class="p1"></p>
    </div>
    <div class="box">
        <div class="div1">
            <p></p>
        </div>
    </div>
    <p></p>

</body>

</html>